package cn.fenqing168.springcloud.dao;

import cn.fenqing168.springcloud.entity.OrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @author fenqing
 */
@Repository
@Mapper
public interface OrderDao {

    /**
     * 创建订单
     * @param order 订单对象
     */
    void create(OrderEntity order);

    /**
     * 修改订单装填
     * @param id 订单id
     * @param status 订单状态
     */
    void updateStatus(@Param("id") Long id, @Param("status") Integer status);

}
